<div class="header">
  <back-Btn></back-Btn>
  农民工工资付款
</div>
<div class="container finance">
  <div class="list f_sk">
    <div class="list-item icon_more required" ng-click="chooseProject()">
      <div class="item-label">项目名称</div>
      <div class="flow-content">{{ param.projectName }}</div>
    </div>
    <div class="list-item icon_more required">
      <div class="item-label">工资年份</div>
      <div class="flow-content" style="padding-right:0">
        <select ng-model="param.year" ng-options="item.value as item.key for item in years">
          <option value=""></option>
        </select>
      </div>
    </div>
    <div class="list-item icon_more required">
      <div class="item-label">工资月份</div>
      <div class="flow-content" style="padding-right:0">
        <label class="multiple">
          <span class="select-value">{{param.monthArr.toString()}}</span>
          <select multiple ng-model="param.monthArr" ng-options="item.value as item.key for item in months">
          </select>
        </label>
      </div>
    </div>
    <div class="list-item icon_more required">
      <div class="item-label">款项来源</div>
      <div class="flow-content" style="padding-right:0">
        <select ng-model="param.sourceType" ng-options="item.value as item.key for item in sourceTypeList">
          <option value="">选择款项来源</option>
        </select>
      </div>
    </div>
    <div class="list-item icon_more">
      <div class="item-label">合同类别</div>
      <div class="flow-content" style="padding-right:0">
        <select ng-model="param.contractType" ng-options="item.value as item.key for item in contractTypeList">
          <option value="">选择合同类别</option>
        </select>
      </div>
    </div>
    <div class="list-item icon_more required" ng-click="chooseContract()" ng-show="param.contractType">
      <div class="item-label">合同编号</div>
      <div class="flow-content">
        {{ param.contractNo }}
      </div>
    </div>
    <div class="list-item required">
      <div class="item-label">付款金额</div>
      <div class="flow-content">
        <input type="text" ng-model="param.amount" tel-directive />
      </div>
    </div>
    <div class="list-item required">
      <div class="item-label">收款人</div>
      <div class="flow-content">
        <input type="text" ng-model="param.receivePerson" />
      </div>
    </div>
    <div class="list-item">
      <div class="item-label">收款人账号</div>
      <div class="flow-content">
        <input type="text" ng-model="param.receiveAccount" />
      </div>
    </div>
    <div class="list-item">
      <div class="item-label">收款人开户行</div>
      <div class="flow-content">
        <input type="text" ng-model="param.receiveBank" />
      </div>
    </div>
          <!-- 其他费用 -->
          <div class="list table-list">
            <div class="info-title">
              其他费用明细
              <span class="c-blue fr" ng-click="showCertificate()">添加</span>
            </div>
            <div class="table-item" ng-repeat="item in param.payments">
              <div class="content" ng-class="{cur:$index==costindex}" ng-click="resetlist(0)" ng-swipe-left="swipe($index,0)"
                ng-swipe-right="swipe(-1,0)">
                <div class="list-item">
                  <div class="item-label">款项来源</div>
                  <div class="flow-content">
                    {{ item.sourceType=="1"?"农民工工资账户余额":"项目账户余额" }}
                  </div>
                </div>
                <div class="list-item">
                  <div class="item-label">计入合同已付款</div>
                  <div class="flow-content">{{ item.inContract=="0"?"否":"是" }}</div>
                </div>
                <div class="list-item">
                  <div class="item-label">付款金额</div>
                  <div class="flow-content">{{ item.amount|NBFmt }}</div>
                </div>
                <div class="list-item">
                  <div class="item-label">收款人</div>
                  <div class="flow-content">{{ item.receivePerson}}</div>
                </div>
                <div class="list-item">
                  <div class="item-label">收款人账号</div>
                  <div class="flow-content">{{ item.receiveAccount }}</div>
                </div>
                <div class="list-item">
                  <div class="item-label">收款人开户行</div>
                  <div class="flow-content">{{ item.receiveBank }}</div>
                </div>
                <div class="list-item">
                  <div class="item-label">付款事由</div>
                  <div class="flow-content">{{ item.remark }}</div>
                </div>
                <div class="file-upload" file-list file-data="item.attachment"></div>
              </div>
              <div class="delete_icon icon_del" ng-click="deletedItem($index)"></div>
            </div>
          </div>    
    <div class="list-item list-item-textarea">
      <div class="item-label">备注</div>
      <div class="flow-content">
        <textarea cols="30" rows="10" ng-model="param.remark"></textarea>
      </div>
    </div>
    <!-- 自定义字段 -->
    <div user-defined field-map="param.fieldMap" validation="validation" uid="param.uid"
      processid="param.processInstanceId"></div>
    <!-- 附件 -->
    <div class="file-upload" file-upload file-data="param.attachment"></div>
    <!-- 审查日志 -->
    <div log-list taskid="process_id"></div>
  </div>
</div>
<!-- 删除流程 -->
<div delete-flow uid="param.uid" id="{{ param.processInstanceId }}" submit="submit" validate="validate"></div>
<!-- 其他费用 -->
<div class="list tablestyle pickceritem" ng-show="showCerPicker">
  <div class="list-item f_sk">
    <div class="grid list-content icon_enter required">
      <div class="col-1-4">款项来源</div>
      <div class="col-3-4">
        <select ng-model="picker.sourceType" ng-options="item.value as item.key for item in sourceTypeList">
          <option value="">选择款项来源</option>
        </select>
      </div>
    </div>
    <div class="grid list-content required">
      <div class="col-1-4">计入合同已付款</div>
      <div class="col-3-4">
        <select ng-model="picker.inContract" ng-options="item.value as item.key for item in inContractList">
          <option value="">是否计入合同已付款</option>
        </select>
      </div>
    </div>
    <div class="grid list-content icon_enter required">
      <div class="col-1-4">付款金额</div>
      <div class="col-3-4">
        <input type="text" tel-directive ng-model="picker.amount" />
      </div>
    </div>
    <div class="grid list-content required">
      <div class="col-1-4">收款人</div>
      <div class="col-3-4">
        <input type="text" ng-model="picker.receivePerson" />
      </div>
    </div>
    <div class="grid list-content">
      <div class="col-1-4">收款人账号</div>
      <div class="col-3-4">
        <input type="text" ng-model="picker.receiveAccount" />
      </div>
    </div>
    <div class="grid list-content">
      <div class="col-1-4">收款人开户行</div>
      <div class="col-3-4">
        <input type="text" ng-model="picker.receiveBank" />
      </div>
    </div>
    <div class="grid list-content icon_enter required">
      <div class="col-1-4">付款事由</div>
      <div class="col-3-4">
        <input type="text" ng-model="picker.remark" />
      </div>
    </div>
    <div class="file-upload" file-upload file-data="picker.attachment" maxnum=1></div>
  </div>
  <div class="pickceritem-btn tc flex">
    <div class="cancel" ng-click="closePicker()">取消</div>
    <div class="confirm" ng-click="addCertificate()">确定</div>
  </div>
</div>